package app

import "net/http"

type Guard struct{}

func (Guard) BeforeRunControllers(response http.ResponseWriter, input *http.Request) {
	//注册异常处理
	defer Exception.Handle(response)
	//注册网关
	Gateway.LimitRequest().Increase(response)
	defer Gateway.Decrease()
}
